﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.QuerySource
{
    public class BillQuerySchemeItem
    {
        private string key = "";
        private string caption = "";
        private string languageTexts = "";
        private bool default_ = false;

        private BillQueryPrinterFields printerFields;
        private BillQueryGeneralFields generalFields;
        private BillQueryAdvancedFields advancedFields;
        private BillQuerySqlSource sqlSource;
        private BillQueryWhereCode sqlWhere;

        
        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }

        [Xml("languageTexts")]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml("default")]
        public bool Default_
        {
            get
            {
                return default_;
            }

            set
            {
                default_ = value;
            }
        }
        [XmlElement("printerFields")]
        public BillQueryPrinterFields PrinterFields
        {
            get
            {
                return printerFields;
            }

            set
            {
                printerFields = value;
            }
        }
        [XmlElement("generalFields")]
        public BillQueryGeneralFields GeneralFields
        {
            get
            {
                return generalFields;
            }

            set
            {
                generalFields = value;
            }
        }
        [XmlElement("advancedFields")]
        public BillQueryAdvancedFields AdvancedFields
        {
            get
            {
                return advancedFields;
            }

            set
            {
                advancedFields = value;
            }
        }
        [XmlElement("sqlSource")]
        public BillQuerySqlSource SqlSource
        {
            get
            {
                return sqlSource;
            }

            set
            {
                sqlSource = value;
            }
        }
        [XmlElement("sqlWhere")]
        public BillQueryWhereCode SqlWhere
        {
            get
            {
                return sqlWhere;
            }

            set
            {
                sqlWhere = value;
            }
        }
    }
}
